package strutil

import (
	"strings"

	webserver "gitee.com/cs-character-cloud/character-cloud-util/web_server"
	"github.com/gin-gonic/gin"
)

func (*strUtil) strToUp(c *gin.Context) {
	str := c.DefaultQuery("str", "")
	if "" == str {
		webserver.Success(c, "转换成功", "")
		return
	}
	result := strings.ToUpper(str)
	webserver.Success(c, "转换成功", result)
}
